//
//  AQRSlidesView.h
//  IfengNews
//
//  Created by Ryan on 13-5-13.
//
//

#import <UIKit/UIKit.h>



typedef enum {
    statueAQRSlideCurrent=0,
    statueAQRSlidePre,
    statueAQRSlideNext,
    statueAQRSlideNone
    
}AQRSlidesViewStatue;

typedef enum {
    directionAQRSlidesView_left=0,
    directionAQRSlidesView_right,
    directionAQRSlidesView_none
}AQRSlidesViewDirection;

@protocol AQRSlidesViewDataSource<NSObject>

@required
- (Class)childrenClass;

- (int)photoCount;
- (int)currentSliderBehind;
- (int)initIndex;

- (NSObject *)childrenCreateParams;

@end
@class AQRSlideViewController;
@interface AQRSlidesView : UIScrollView<UIScrollViewDelegate>{
    int preBody;
    int currentBody;
    int nextBody;
    //int currentIndex;
    int count;
    Class _childClass;
    NSArray *_children;
    AQRSlidesViewDirection _curretnDirection;
    
}
@property (nonatomic,weak) id<AQRSlidesViewDataSource> datasource;
//@property (nonatomic,assign) int currentIndex;

@property (nonatomic,unsafe_unretained)int scrollIndex;
@property (nonatomic,unsafe_unretained) AQRSlidesViewDirection curretnDirection;
@property (nonatomic,unsafe_unretained) BOOL isCycle;
@property (nonatomic,unsafe_unretained)float floatPre;
@property (nonatomic,unsafe_unretained)int count;

- (AQRSlideViewController *)currentChild;

- (AQRSlideViewController *)currentController;

- (int )currentIndex;

- (int )preIndex;

- (int )nextIndex;

- (void)reloadData;
- (void)loadNextData;
- (int)scrollIndex;

- (void)setOffset:(CGPoint )point;

- (void)updateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation;

@end
